PYTHON-6036 Vendor the OpenTelemetry unified spec tests - #2993
Draft
blink1073 wants to merge 1 commit into
Draft
Conversation
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 17, 2026 22:39
1716de6 to
8e7dd06
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 17, 2026 22:50
8e7dd06 to
7592441
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 17, 2026 23:09
7592441 to
a3455c6
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 01:40
a3455c6 to
2649974
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 01:54
2649974 to
0089fea
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 02:06
0089fea to
16dec53
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 10:22
16dec53 to
af1db36
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 10:29
af1db36 to
7042191
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 10:44
7042191 to
c829156
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 10:47
c829156 to
61a201f
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 11:06
61a201f to
81de518
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 11:18
81de518 to
a19a65b
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 11:42
a19a65b to
e374ec0
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 11:50
e374ec0 to
c969888
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 12:02
c969888 to
ae8c3f0
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 12:55
ae8c3f0 to
2f148bc
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 13:35
2f148bc to
a4db6fd
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 13:47
a4db6fd to
19a3b1b
Compare
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 14:04
19a3b1b to
15a7b13
Compare
Wire observeTracingMessages and expectTracingMessages into the unified test format runner and vendor the spec's tracing fixtures, plus a resync-specs.sh entry to refresh them. Span attributes are plain Python primitives rather than the BSON-decoded documents the generic match evaluator compares against, so MatchEvaluatorUtil.match_span_attributes adapts them: ints widen to Int64 so the $$type "long" alias matches, and db.mongodb.lsid is rebuilt from its UUID string into the document shape the sessionLsid operator expects. The getMore fixture is held back for the change that adds getMore spans; the other 22 do not exercise getMore.
blink1073
force-pushed
the
PYTHON-5947-otel-3-unified
branch
from
August 18, 2026 14:44
15a7b13 to
719599e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PYTHON-6036
Third of four PRs splitting #2964. Base is
PYTHON-5947-otel-2-transactions.PYTHON-5947-otel-1-operationsPYTHON-5947-otel-2-transactionsPYTHON-5947-otel-3-unifiedPYTHON-5947-otel-4-getmoreChanges in this PR
Replaces hand-written assertions with the cross-driver spec suite, so the spans from PRs 1 and 2 are checked against the same fixtures every other driver runs.
observeTracingMessagesandexpectTracingMessagessupport to the unified test format runner.resync-specs.shentry to refresh them.ignoreExtraSpansis enforced at every level of the span tree, not just the top-level array, so a test can assert a span is not nested under a given parent by omitting it.The
getMorefixture is held back for PR 4, which adds the support it needs. The other 22 do not exercisegetMore.Around 4,200 of the 4,600 added lines are
resync-specs.shoutput and another ~150 are generated mirrors, leaving roughly 190 lines to review.The 22 vendored fixtures match
mongodb/specificationsmaster. Two needed fixing upstream first; both are merged in DRIVERS-3597.The tree-wide
ignoreExtraSpansrule is the one piece here not yet on master: it is specified in DRIVERS-3598 (specifications#1973), still open. PR 4's fixture depends on it, since without it that fixture's negative assertions are unenforceable.Test Plan
mapReduce, whoseCollectionmethods PyMongo removed.just lintclean.Checklist
Checklist for Author
Checklist for Reviewer